package com.clkj.aimin.pojo.doctor;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_doctorTalk" )
@Table( name ="t_cl_doctorTalk" )
public class DoctorTalk  implements Serializable {

    @Id
   	@Column(name = "talk_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer talkId;

	/**
	 * 医生ID
	 */
   	@Column(name = "doctor_id" )
	@ApiModelProperty( value="医生ID")
	private Integer doctorId;

	/**
	 * 提问者ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="提问者ID")
	private Integer userId;

	/**
	 * 提问内容
	 */
   	@Column(name = "talk_detail" )
	@ApiModelProperty( value="提问内容")
	private String talkDetail;

	/**
	 * 提问时间
	 */
   	@Column(name = "date_time" )
	@ApiModelProperty( value="提问时间")
	private String dateTime;

	/**
	 * 医生回复的评论ID
	 */
   	@Column(name = "parent_id" )
	@ApiModelProperty( value="医生回复的评论ID")
	private Integer parentId;


    /**
     * 医生回复的评论ID
     */
    @Column(name = "user_type" )
    @ApiModelProperty( value="0为用户说的，1为医生说的")
    private Integer userType;


   	@Transient
    private String userName;

    @Transient
    private String userImg;

  public Integer getTalkId() {
    return talkId;
  }

  public void setTalkId(Integer talkId) {
    this.talkId = talkId;
  }


  public Integer getDoctorId() {
    return doctorId;
  }

  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getTalkDetail() {
    return talkDetail;
  }

  public void setTalkDetail(String talkDetail) {
    this.talkDetail = talkDetail;
  }


  public String getDateTime() {
    return dateTime;
  }

  public void setDateTime(String dateTime) {
    this.dateTime = dateTime;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
}
